package com.woniuxy.microcurrentserver.service;

import com.woniuxy.bean.current.PageInfos;
import com.woniuxy.bean.current.MemberCurrentAccount;

import java.util.List;

public interface OrderService {

    /**
     * class:
     * create by: 陈酒
     * description:新增订单
     * create time: 2021/4/17
     *
     * @param:
     */
    boolean insertOrder(PageInfos pageInfos);

    /**
     * class:
     * create by: 陈酒
     * description:获取用户基金收益
     * create time: 2021/4/17
     *
     * @param:a
     */
    List<MemberCurrentAccount> getUserCurrentInfo(String memberAccount);

    /**
     * class:
     * create by: 陈酒
     * description:确认是否第一次购买
     * create time: 2021/4/17
     *
     * @param:a
     */
    MemberCurrentAccount checkMember(String code, String name);

    /**
     * class:
     * create by: 陈酒
     * description:增加买入金额
     * create time: 2021/4/17
     *
     * @param:a
     */
    int updateFundNum(PageInfos pageInfos);

    void setFundNumZero(String code, String name);
}
